package com.ait.edu.client;


import com.ait.commonutils.Msg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;



/*
* 这个类是分布式nacos
*
* 这个类是调用servic-oss服务器的对应的方法
*
* */
//调用服务名称
@FeignClient(name = "servic-oss",fallback = OssFileDegradeFeignClient.class)
@Component
public interface Ossclient{

    //在你的定义的时候你的参数一定@RequestParam否则出错
    //根据id删除阿里云视频
    @DeleteMapping("/eduoss/delvideo")
    Msg delVideo(@RequestParam("id") String id);

    //参数是多个视频的id list
    @DeleteMapping("/eduoss/delBatchVideo")
    Msg delBatchVideo(@RequestParam("videoList")List<String> videoList);
}
